
import { PipeTransform, Pipe } from '@angular/core';

@Pipe({ name: 'toBool' })
export class BooleanPipe implements PipeTransform {
    transform(value: any, ...args: any[]) {
        console.log('toBool');
        return value.nodeType === 0;
    }
}